// 用户基本不变的资料
const user = {
  info: {
    router:[{
      path:'/Index',
      name:'首页',
      index:1
    }],
    login:false,
    routerCurrent:1,//大盒子的index
    BoxCurrent:null,//里面的小盒子的index
    currentIndex:null,
    userName:'',//用户姓名
    userPhone:'',//用户手机号
    com_name:'',//公司名称
    com_adress:'',//公司地址
    com_sn:''//统一信用代码18位
  },
  methods: {
    router (state,obj) {
      state.router = obj
    },
    login (state, s){
      state.login = s
    },
    routerCurrent (state, current) {
      state.routerCurrent = current
    },
    BoxCurrent (state, current) {
      state.BoxCurrent = current
    },
    currentIndex (state, current) {
      state.currentIndex = current
    },
    userName (state, str) {
      state.userName = str
    },
    userPhone (state, str) {
      state.userPhone = str
    },
    com_name (state, str) {
      state.com_name = str
    },
    com_adress (state, str) {
      state.com_adress = str
    },
    com_sn (state, sn) {
      state.com_sn = sn
    }
  }
}

export default user
